public TagsFacadeTests() { var reader = new Reader { ReaderId = 1, FirstName = "firstName", LastName = "lastName", Preferences = new List <Tag>() }; this.uow = Initializer.GetLibraryUow(); this.tagToAdd = new Tag { Id = 1, Items = null, Readers = new List <Reader>(), Name = "tag" }; this.tagToAdd.Readers.Add(reader); reader.Preferences.Add(this.tagToAdd); this.uow.Tags.Add(this.tagToAdd); var tag = new Tag { Id = 2, Items = null, Readers = null, Name = "test" }; this.uow.Tags.Add(tag); tag = new Tag { Id = 3, Items = null, Readers = null, Name = "tag1" }; this.uow.Tags.Add(tag); tag = new Tag { Id = 4, Items = null, Readers = null, Name = "test1" }; this.uow.Tags.Add(tag); this.uow.Readers.Add(reader); this.tagsFacade = new TagsFacade(this.uow); }
public TagsFacadeTests() { var reader = new Reader {ReaderId = 1, FirstName = "firstName", LastName = "lastName", Preferences = new List<Tag>()}; this.uow = Initializer.GetLibraryUow(); this.tagToAdd = new Tag {Id = 1, Items = null, Readers = new List<Reader>(), Name = "tag"}; this.tagToAdd.Readers.Add(reader); reader.Preferences.Add(this.tagToAdd); this.uow.Tags.Add(this.tagToAdd); var tag = new Tag { Id = 2, Items = null, Readers = null, Name = "test" }; this.uow.Tags.Add(tag); tag = new Tag { Id = 3, Items = null, Readers = null, Name = "tag1" }; this.uow.Tags.Add(tag); tag = new Tag { Id = 4, Items = null, Readers = null, Name = "test1" }; this.uow.Tags.Add(tag); this.uow.Readers.Add(reader); this.tagsFacade = new TagsFacade(this.uow); }
public TagsManager(ITagsFacade tagsFacade) { this.tagsFacade = tagsFacade; }
public TagsController(ITagsFacade tagsFacade) { _tagsFacade = tagsFacade; }