Example #1
0
        public void Should_SetAddedState()
        {
            TenderCountry tenderCountry = new TenderCountry(CountryId);

            tenderCountry.SetAddedState();
            Assert.Equal(0, tenderCountry.Id);
        }
Example #2
0
        public void Should_SetActive()
        {
            TenderCountry tenderCountry = new TenderCountry(CountryId);

            tenderCountry.SetActive();
            Assert.True(tenderCountry.IsActive);
        }
Example #3
0
        public void Should_Deactive()
        {
            TenderCountry tenderCountry = new TenderCountry(CountryId);

            tenderCountry.DeActive();
            Assert.False(tenderCountry.IsActive);
        }
Example #4
0
        public void Should_Delete()
        {
            TenderCountry tenderCountry = new TenderCountry(CountryId);

            tenderCountry.Delete();
            Assert.Equal(ObjectState.Deleted, tenderCountry.State);
        }
Example #5
0
        public void Should_Update()
        {
            TenderCountry tenderCountry = new TenderCountry(CountryId);

            tenderCountry.Update();
            tenderCountry.ShouldNotBeNull();
        }
Example #6
0
        public void Should_Construct_TenderConstructionWork()
        {
            TenderCountry tenderCountry = new TenderCountry(CountryId);

            _ = new TenderCountry();
            _ = tenderCountry.Country;
            _ = tenderCountry.TenderId;
            _ = tenderCountry.Tender;

            tenderCountry.ShouldNotBeNull();
        }