[TestMethod] // [0] | Get Tenants public void GetTenantsReturnTenants() { //Arrange //Properties go here var tenantsController = new TenantsController(); //Act IEnumerable<TenantModel> tenant = tenantsController.GetTenants(); //Assert Assert.IsTrue(tenant.Count() > 0); }
public void GetTenantsReturnsTenants() { //Arrange: Instantiate TenantsController so its methods can be called using (var tenantController = new TenantsController()) { //Act: Call the GetTenants method IEnumerable<TenantModel> tenants = tenantController.GetTenants(); //Assert: Verify that an array was returned with at least one element Assert.IsTrue(tenants.Count() > 0); } }