public void CrmEnvironmentBuilder_ExceptEntities_GivenIdStruct_Should_CreateAllExceptExcluded() { // // Arrange // var service = LocalCrmDatabaseOrganizationService.CreateOrganizationService(LocalCrmDatabaseInfo.Create <CrmContext>(Guid.NewGuid().ToString())); // // Act // var builder = new CrmEnvironmentBuilder(). WithEntities <Ids>(). ExceptEntities <Ids.Nested>(); builder.Create(service); // // Assert // AssertCrm.Exists(service, Ids.Value1); AssertCrm.Exists(service, Ids.Value2); AssertCrm.NotExists(service, Ids.Nested.Value1); AssertCrm.NotExists(service, Ids.Nested.Value2); }
protected override void Test(IOrganizationService service) { // Test happens CleanupTestData AssertCrm.NotExists(Ids.Contact, "Contact Should have been deleted up by the CleanupDataPreInitialization"); }