Beispiel #1
0
        public void EditUserProfileTest()
        {
            var profilePutModel = new ProfilePutModel();
            var command         = new EditCommand(GetFakeApiController(), GetFakeUserRepository(), profilePutModel);
            Task <HttpResponseMessage> result = command.Execute();

            result.Wait();

            Assert.IsFalse(result.IsFaulted);
            Assert.IsNotNull(result.Result);
            Assert.IsTrue(result.Result.StatusCode == HttpStatusCode.OK);
        }
        public void EditUserProfileTest()
        {
            var profilePutModel = new ProfilePutModel();
            var command = new EditCommand(GetFakeApiController(), GetFakeUserRepository(), profilePutModel);
            Task<HttpResponseMessage> result = command.Execute();
            result.Wait();

            Assert.IsFalse(result.IsFaulted);
            Assert.IsNotNull(result.Result);
            Assert.IsTrue(result.Result.StatusCode == HttpStatusCode.OK);
        }