コード例 #1
0
 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));
 }
コード例 #2
0
        public void IfOpportunityPropertyIsNullJsonShouldNotHaveThisProperty()
        {
            _sut = new LeadStatusRoot("FakeAtuToken", new LeadStatus(LifeCycleLeadStage.LeadQualificado, null));
            var serializeObject = JsonConvert.SerializeObject(_sut);

            StringAssert.DoesNotContain("\"opportunity\":null", serializeObject);
        }
コード例 #3
0
 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));
 }
コード例 #4
0
        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);
 }