public AddingToCartTest()
 {
     this._context       = AddingToCartTest.GenerateMockContextData();
     this._validator     = new POSItemValidator();
     this._cartValidator = new TransactionRequestValidator();
     this._cart          = AddingToCartTest.GenerateTransactionContext();
 }
        private static POSContext GenerateMockContextData()
        {
            var options = new DbContextOptionsBuilder <POSContext>()
                          .UseInMemoryDatabase("TodoList").Options;
            POSContext context = new POSContext(options);

            context = AddingToCartTest.AddItem(context, MockItem.GenerateMockItem1());
            context = AddingToCartTest.AddItem(context, MockItem.GenerateMockItem2());
            context = AddingToCartTest.AddItem(context, MockItem.GenerateMockItem3());
            return(context);
        }