Beispiel #1
0
        public async Task Delete()
        {
            int deletedEntityId = 0;

            using (MockHttpServer.Null(request =>
            {
                deletedEntityId = int.Parse(request.Url.ToString().Split('/').Last());
            }))
            {
                var client = HttpApiClient <ICrudApi <User> > .Create("http://localhost:8844");

                await client.Delete(1);

                Assert.AreEqual(1, deletedEntityId);
            }
        }