public void ReturnOkPutActionEndWorkLogSessionAndAuthorizedUser()
{
this.controller
.Calling(c => c.EndWorkLogSession(1))
.ShouldHave()
.ActionAttributes(attr => attr.ChangingRouteTo("~/api/projects/session/{id}"))
.AndAlso()
.ShouldHave()
.ActionAttributes(attr => attr.RestrictingForRequestsWithMethod(HttpMethod.Put))
.AndAlso()
.ShouldHave()
.ActionAttributes(attr => attr.RestrictingForAuthorizedRequests())
.AndAlso()
.ShouldReturn()
.Ok();
}