BillableHoursWebApp.Api.Tests.RouteTests.CategoriesControllerRoutesTests.PutWithCompletedProjectIdShouldMapCorrectly C# (CSharp) 메소드

PutWithCompletedProjectIdShouldMapCorrectly() 개인적인 메소드

private PutWithCompletedProjectIdShouldMapCorrectly ( ) : void
리턴 void
        public void PutWithCompletedProjectIdShouldMapCorrectly()
        {
            MyWebApi
                .Routes()
                .ShouldMap("api/categories/5")
                .WithHttpMethod(HttpMethod.Put)
                 .WithJsonContent(@"{ ""Name"": ""Test"" }")
                .To<CategoriesController>(c => c.Put(5, new CategoryRequestModel
                {
                    Name = "Test"
                }))
                .AndAlso()
                .ToValidModelState();
        }