public void CreateCompanyWithUser_CompleteDetails_Success() { AutoMapperConfig.Init(); var companyService = new CompanyService(new UnitOfWork(new EmsDevEntities())); #region company dto CompanyDto company = new CompanyDto { Name = "Basecamp", Founded = DateTime.UtcNow.Year, Background = "Test", Address = new AddressDto { City = "San Juan", Long = 1, Lat = 2, PostalCode = "1422", StreetAddress = "1110 wilshire annapolis" }, Users = new List <UserDto> { new UserDto { CompanyId = 1, Address = new AddressDto { City = "San Juan", Long = 1, Lat = 2, PostalCode = "1422", StreetAddress = "1110 wilshire annapolis" }, FirstName = "Francisco", LastName = "Cebu", MiddleName = Guid.NewGuid().ToString("N").Substring(0, 10), UserAccount = new UserAccountDto { Password = "******", UserName = Guid.NewGuid().ToString("N").Substring(0, 10), IsActive = true, IsLock = false }, EmailAddress = "*****@*****.**", } } }; #endregion companyService.CreateCompanyWithUser(company, "test"); }