public void ToUserRoleVm_Should_Return_UserRoleVm() { Role result = new Role("1", "admin"); UserRoleVm actual = UserModelHelper.ResultToUserRoleVm(result); Assert.AreEqual("admin", actual.Name); }
public void ToUserRoleVm_Should_Throw_Exception_When_Result_Is_Null() { Role result = null; UserRoleVm actual = UserModelHelper.ResultToUserRoleVm(result); }