public void ReturnWorkLogIdPostActionBeginWorkLogSessionWithCorrectModelAndAuthorizedUser()
{
this.controller
.Calling(c => c.BeginWorkLogSession(1, TestObjectsFactory.ValidProjectWorkLogRequestModel))
.ShouldHave()
.ActionAttributes(attr => attr.ChangingRouteTo("~/api/projects/session/{id}"))
.AndAlso()
.ShouldHave()
.ActionAttributes(attr => attr.RestrictingForRequestsWithMethod(HttpMethod.Post))
.AndAlso()
.ShouldHave()
.ActionAttributes(attr => attr.RestrictingForAuthorizedRequests())
.AndAlso()
.ShouldReturn()
.Ok()
.WithResponseModelOfType<int>();
}