public void GivenTheRecordR1DoesNotExistOnTheServer()
 {
     if (ServerRepository.Find(TestItemR1.Id) != null)
     {
         ServerRepository.Delete(TestItemR1.Id);
     }
 }
Exemplo n.º 2
0
        public bool Delete(string serverID)
        {
            Guid gServerID = new Guid(serverID);
            var  server    = ServerRepository.GetQueryable()
                             .FirstOrDefault(i => i.ServerID == gServerID);

            if (server != null)
            {
                ServerRepository.Delete(server);
                ServerRepository.SaveChanges();
            }
            else
            {
                return(false);
            }
            return(true);
        }
Exemplo n.º 3
0
        public Server Delete([FromBody] Server server)
        {
            _repository.Delete(server);

            return(server);
        }
 public void GivenTheR0RecordHasBeenDeletedFromTheServer()
 {
     ServerRepository.Delete(TestItemR0.Id);
 }