public void Add_Should_CallRepositoryCreate_When_Called() { _stewardessService.Add(_stewardessDTO); A.CallTo(() => _fakeUnitOfWork.Set<Stewardess>().Create(A<Stewardess>.That.IsInstanceOf(typeof(Stewardess)), null)).MustHaveHappenedOnceExactly(); }
public void Add_Should_CallRepositoryCreate_When_Called() { _stewardessService.Add(_stewardessDTO); A.CallTo(() => _fakeUnitOfWork.Set<Stewardess>().Create(A<Stewardess>.That.IsInstanceOf(typeof(Stewardess)), null)).MustHaveHappenedOnceExactly(); }