public void ReadDefaultCompanyInformationEntity() { var x = new DefaultCompanyInformationWrapper(); Assert.IsFalse(x.IsLoaded); x.Load(); Assert.IsTrue(x.IsLoaded); Assert.IsTrue(x.Exists()); Assert.IsNotNull(x.Data); Assert.IsNotNullOrEmpty(x.Data.Name); Assert.IsNotNullOrEmpty(x.Data.Slogan); Assert.IsNotNullOrEmpty(x.Data.AddressLine1); Assert.IsNotNullOrEmpty(x.Data.PostalTown); Assert.IsNotNullOrEmpty(x.Data.WebsiteUrl); Assert.IsNotNullOrEmpty(x.Data.CellPhone); Assert.IsNotNullOrEmpty(x.Data.OfficePhone); Assert.IsNotNullOrEmpty(x.Data.PostCode); Assert.IsNotNullOrEmpty(x.Data.Country); }
public void WriteDefaultCompanyInformationConfig() { var x = new DefaultCompanyInformationWrapper(); x.Save(); Assert.IsTrue(File.Exists(x.FullFileName)); }