Ejemplo n.º 1
0
        public HttpResponseMessage Delete(int id)
        {
            var retId = _usersProvider.Delete(id);

            //_lyricService.Delete(id);
            _usersProvider.Delete(id);
            _s3Provider.DeleteObjectNonVersionedBucketAsync("UI" + id.ToString());
            var message = "deleted Id: " + retId;

            return(Request.CreateResponse(HttpStatusCode.OK, message));
        }
Ejemplo n.º 2
0
        public void UserIndependent()
        {
            IUsersProvider provider = Provider.UsersProvider;

            provider.Clear().Wait();
            Assert.IsFalse(provider.GetAll().Result.Any());
            foreach (var v in usernames)
            {
                Assert.AreEqual(v, provider.Create(v, new User()).Result);
                Assert.IsNotNull(provider.Get(v).Result);
                Assert.AreEqual(v, provider.Update(v, new User()).Result);
                Assert.AreEqual(v, provider.Delete(v).Result);
                Assert.IsNull(provider.Get(v).Result);
            }
        }
Ejemplo n.º 3
0
 public async Task <string> Delete(string id)
 {
     return(await provider.Delete(id));
 }