public void SetUp() { _httpClient = Substitute.For <HttpClient>(); _sut = new RdStationApiClient(_httpClient); _lead = new Lead("FakeToken", "FakeIdentificador", "FakeEmail"); _leadStatus = new LeadStatusRoot("FakeAuthToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, true)); }
public void IfOpportunityPropertyIsNullJsonShouldNotHaveThisProperty() { _sut = new LeadStatusRoot("FakeAtuToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, null)); var serializeObject = JsonConvert.SerializeObject(_sut); StringAssert.DoesNotContain("\"opportunity\":null", serializeObject); }
public void SetUp() { _httpClient = Substitute.For<HttpClient>(); _sut = new RdStationApiClient(_httpClient); _lead = new Lead("FakeToken", "FakeIdentificador", "FakeEmail"); _leadStatus = new LeadStatusRoot("FakeAuthToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, true)); }
public void SetUp() { var leadStatus = new LeadStatus(LifeCycleLeadStage.LeadQualificado, true); _sut = new LeadStatusRoot("FakeAtuToken", leadStatus); }
public void SetUp() { var leadStatus = new LeadStatus(LifeCycleLeadStage.LeadQualificado, true); _sut = new LeadStatusRoot("FakeAtuToken", leadStatus); }
public void IfOpportunityPropertyIsNullJsonShouldNotHaveThisProperty() { _sut = new LeadStatusRoot("FakeAtuToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, null)); var serializeObject = JsonConvert.SerializeObject(_sut); StringAssert.DoesNotContain("\"opportunity\":null", serializeObject); }