Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public void AddDeal_CorrectDeal_PassTheAddAndSavechanged() { //Arrange var share = new Share(); var seller = new Trader() { SharesCollection = { share } }; var buyer = new Trader(); //Act _businessService.AddDeal(buyer, seller, share); //Assert Received.InOrder(() => { _dataContext.Received(1).Add(Arg.Any <Deal>()); _dataContext.Received(1).SaveChanges(); }); }