public async void GivenModel_ManagerWillCreateEntityRecord() { // Arrange var manager = new GenericManager <Word>(UoWFactoryMock.Object); UoW.Setup(m => m.CreateRepository <IGenericRepository <Word> >().Create(It.IsAny <Word>())).Verifiable(); // Act word = await manager.CreateAsync(word).ConfigureAwait(false); // Assert UoW.Verify(m => m.CreateRepository <IGenericRepository <Word> >().Create(It.Is <Word>(it => it.Id == word.Id))); }