Ejemplo n.º 1
0
        public void TestDeleteCenterByIncorrectId()
        {
            CenterInputModel centerModel = this.GetInputModel();

            ICenterService centerService  = new CenterService(this.dbContext);
            Center         currentlyAdded = centerService.CreateCenter(centerModel);
            Center         result         = centerService.DeleteCenterById("invalid-id-55595");

            Assert.Null(result);
        }
Ejemplo n.º 2
0
        public void TestDeleteCenterById()
        {
            CenterInputModel centerModel = this.GetInputModel();

            ICenterService centerService  = new CenterService(this.dbContext);
            Center         currentlyAdded = centerService.CreateCenter(centerModel);
            Center         result         = centerService.DeleteCenterById(currentlyAdded.Id);

            Assert.NotNull(result);
        }