Exemplo n.º 1
0
 public SingleRowTests()
 {
     singleRowList = new List <SingleRow>();
     singleRowList.Add(new SingleRow()
     {
         Id = "1", City = "city 1", Name = "name 1"
     });
     singleRowList.Add(new SingleRow()
     {
         Id = "2", City = "city 2", Name = "name 2"
     });
     singleRowList.Add(new SingleRow()
     {
         Id = "3", City = "city 3", Name = "name 3"
     });
     mongocollection  = new Mock <IMongoCollection <SingleRow> >();
     singleRowRepo    = new SingleRowRepository();
     singleRowService = new SingleRowService(singleRowRepo);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SingleRowService"/> class.
        /// </summary>
        /// <param name="repository">
        /// The async repository.
        /// </param>

        public SingleRowService(ISingleRowRepository repository)
            : base(repository)
        {
            this.repositoryAsync = repository;
        }