public void Location_Can_Edit() { var location = new Location {Id=1, AddressId = 1, CreatedByUserId = 1, CreatedDate = new DateTime(2013,1,1), ModifiedByUserId = 2, ModifiedDate = new DateTime(2013,1,2), Name = "Flannagan's Dublinzzzzzzzz", NickName = "Flans"}; var repo = new Dig.Data.Repositories.LocationRepository(); repo.Update(location); }
public void Location_Can_Add() { var location = new Location() { AddressId = 0, CreatedByUserId = 0, CreatedDate = new DateTime(2013, 1, 1), Id = 1, ModifiedByUserId = 0, ModifiedDate = new DateTime(2013, 1, 1), Name = "Test", NickName = "Testerasdf" }; var repo = new Dig.Data.Repositories.LocationRepository(); repo.Add(location); }