public void EditShouldReturnFalseIfItIsNotSuccessfull() { // Arrange var giftSetService = new AdminGiftSetService(this.db); // Act var result = giftSetService.Edit(1, "", "", 1, 2); // Assert result .Should() .BeFalse(); }
public void EditShouldReturnTrueIfItIsSuccessfull() { // Arrange var giftSet = new GiftSet { Id = 1, Name = "Test" }; this.db.GiftSets.Add(giftSet); this.db.SaveChanges(); var giftSetService = new AdminGiftSetService(this.db); // Act var result = giftSetService.Edit(1, "", "", 1, 2); // Assert result .Should() .BeTrue(); }