BillableHoursWebApp.Api.Tests.ControllerTests.CategoriesControllerTests.ReturnOkPostActionWithCorrectModelAndAuthorizedUser C# (CSharp) Méthode

ReturnOkPostActionWithCorrectModelAndAuthorizedUser() private méthode

private ReturnOkPostActionWithCorrectModelAndAuthorizedUser ( ) : void
Résultat void
        public void ReturnOkPostActionWithCorrectModelAndAuthorizedUser()
        {
            this.controller
                .Calling(c => c.Post(TestObjectsFactory.ValidCategoryRequestModel))
                .ShouldHave()
                .ActionAttributes(attr => attr.RestrictingForAuthorizedRequests())
                .AndAlso()
                .ShouldHave()
                .ValidModelState()
                .AndAlso()
                .ShouldReturn()
                .Ok()
                .WithResponseModelOfType<int>()
                .Passing(x => x > 1);
        }