public void DetectNewBillingAccountTaskTest() { // Arrange APSUser.APSUser user = new APSUser.APSUser(new APSUserId(Guid.NewGuid().ToString()), "usenrame1", "password1"); BillingCompany billingCompany = new BillingCompany(new BillingCompanyId(Guid.NewGuid().ToString()), "PVC Test Company"); BillingAccount billingAccount = new BillingAccount(new BillingAccountId(Guid.NewGuid().ToString()), billingCompany.billingCompanyId, "username1", "password1", user); Schedule MySchedule = new Schedule(taskRepo, billingAccountRepo, scrapeTaskFactory); // Act int TasksCreatedCount = MySchedule.CreateNewTasks(); // Assert Assert.IsTrue(TasksCreatedCount == 1); }