public void FirstNameTest() { Resource target = new Resource(); // TODO: Initialize to an appropriate value string expected = string.Empty; // TODO: Initialize to an appropriate value string actual; target.FirstName = expected; actual = target.FirstName; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void IdTest() { Resource target = new Resource(); // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; target.Id = expected; actual = target.Id; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
private void InitializeHelper(out Resource dummyResource, out Department department) { var windowsIdentity = WindowsIdentity.GetCurrent(); dummyResource = null; if (windowsIdentity != null) { var login = windowsIdentity.Name; dummyResource = new Employee() { WindowsLogin = login, EmailAddress = String.Format("{0}@test.com", login), FullName = "First Last" }; } else dummyResource = new Resource() { EmailAddress = "*****@*****.**", FirstName = "FN", LastName = "LN" }; this.ResourceRepository.AddResource(dummyResource); // create dummy department department = this.DepartmentRepository.GetByName("Department"); if (department == null) { department = new Department() { Name = "Department", Manager = dummyResource as Employee }; this.DepartmentRepository.Add(department); } }
public void ResourceConstructorTest() { Resource target = new Resource(); Assert.Inconclusive("TODO: Implement code to verify target"); }