public void SupplierDto_Property_Organization() { var supplier = new SupplierDto(); var value = TestHelper.OrganizationDto(); supplier.Organization = value; Assert.IsNotNull(supplier.Organization); Assert.IsInstanceOfType(supplier.Organization, typeof(OrganizationDto)); Assert.AreEqual(value, supplier.Organization); }
public void OrganizationBranchDto_Property_Organization() { var organizationBranch = new OrganizationBranchDto(); var value = TestHelper.OrganizationDto(); organizationBranch.Organization = value; Assert.IsNotNull(organizationBranch.Organization); Assert.IsInstanceOfType(organizationBranch.Organization, typeof(OrganizationDto)); Assert.AreEqual(value, organizationBranch.Organization); }
public void EmployeeDto_Property_Organization() { // Arrange var employee = new EmployeeDto(); var value = TestHelper.OrganizationDto(); // Act employee.Organization = value; // Assert Assert.IsNotNull(employee.Organization); Assert.IsInstanceOfType(employee.Organization, typeof(OrganizationDto)); Assert.AreEqual(value, employee.Organization); }
public void JobDto_Property_Organization() { // Arrange var job = new JobDto(); var value = TestHelper.OrganizationDto(); // Act job.Organization = value; // Assert Assert.IsNotNull(job.Organization); Assert.IsInstanceOfType(job.Organization, typeof(OrganizationDto)); Assert.AreEqual(value, job.Organization); }
public void OrganizationDto_Extension_AsEntity_NotNull() { var organization = TestHelper.OrganizationDto(); var result = organization.AsEntity(); Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(Organization)); Assert.IsNotNull(result.RegisteredName); Assert.IsInstanceOfType(result.RegisteredName, typeof(string)); Assert.AreEqual(organization.RegisteredName, result.RegisteredName); Assert.IsNotNull(result.PrintName); Assert.IsInstanceOfType(result.PrintName, typeof(string)); Assert.AreEqual(organization.PrintName, result.PrintName); Assert.IsNotNull(result.Branches); Assert.IsInstanceOfType(result.Branches, typeof(List <OrganizationBranch>)); Assert.IsNotNull(result.Created); Assert.IsInstanceOfType(result.Created, typeof(DateTime)); Assert.AreEqual(organization.Created, result.Created); Assert.IsNotNull(result.CreatedBy); Assert.IsInstanceOfType(result.CreatedBy, typeof(User)); Assert.IsNotNull(result.Modified); Assert.IsInstanceOfType(result.Modified, typeof(DateTime)); Assert.AreEqual(organization.Modified, result.Modified); Assert.IsNotNull(result.ModifiedBy); Assert.IsInstanceOfType(result.ModifiedBy, typeof(User)); Assert.IsNotNull(result.IsRegistered); Assert.IsInstanceOfType(result.IsRegistered, typeof(bool)); Assert.AreEqual(organization.IsRegistered, result.IsRegistered); Assert.IsNotNull(result.IsActive); Assert.IsInstanceOfType(result.IsActive, typeof(bool)); Assert.AreEqual(organization.IsActive, result.IsActive); Assert.IsNotNull(result.IsDeleted); Assert.IsInstanceOfType(result.IsDeleted, typeof(bool)); Assert.AreEqual(organization.IsDeleted, result.IsDeleted); }