public async Task ShouldReturnAllEmployeesOfAdminsCompany() { var tenantId = Guid.NewGuid(); var expected = new Company() { Id = Guid.NewGuid(), TenantId = tenantId, }; var companies = new List <Company>() { expected }; _mock.Mock <IInventContext>() .Setup(context => context.Companies) .ReturnsAsDbSet(companies); var actual = await _provider.GetByTenantIdAsync(tenantId); ContentAssert.AreEqual(expected, actual); }