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); }
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); }