public void GetRepository_OneGeneric_Success_Should_ReturnNull() { var repository = Mock.Of <IRepositoryAsync <TestAggregateRoot, Guid> >(); ITestUnitOfWork unitOfWork = new TestUnitOfWork(_Context, repository); var searchedRepo = unitOfWork.GetRepository <PlaceHolder>(); searchedRepo.Should().BeNull(); }