public void Then_StorageTeacherReturned() { // Arrange var contract = new TeacherRegisterContract() { Email = "*****@*****.**", FirstName = "name", LastName = "surname", DepartmentId = 1 }; var modelMapper = new StorageUserModelMapper(); // Act var result = modelMapper.Map(contract); // Assert result.LastName.Should().Be("surname"); result.FirstName.Should().Be("name"); result.Email.Should().Be("*****@*****.**"); result.UserName.Should().Be("*****@*****.**"); result.DepartmentId.Should().Be(1); }
public void Then_StorageStudentReturned() { // Arrange var contract = new StudentRegisterContract() { Email = "*****@*****.**", FirstName = "name", LastName = "surname", GitLink = "gitLink", GroupId = 1 }; var modelMapper = new StorageUserModelMapper(); // Act var result = modelMapper.Map(contract); // Assert result.LastName.Should().Be("surname"); result.FirstName.Should().Be("name"); result.Email.Should().Be("*****@*****.**"); result.UserName.Should().Be("*****@*****.**"); result.GitLink.Should().Be("gitLink"); }