コード例 #1
0
        static void Main(string[] args)
        {

            DDDEvents_EventsDataContext context = new DDDEvents_EventsDataContext();

            UserRepository userRepository = new UserRepository(context);
            GenerateUser(userRepository);

            var fakeBudgetRepository = new FakeBudgeRepository();
            var fakeEventRepository = new FakeEventRepository();
            var fakeUserRepository = new FakeUserRepository();


            var event1 = new Dictionary<Guid, int> { { Guid.NewGuid(), 1 } };
            var event2 = new Dictionary<Guid, int> { { Guid.NewGuid(), 2 } };

            var budget1 = new Dictionary<Guid, int> { { Guid.NewGuid(), 3 } };

            var selectedEvents = new List<Dictionary<Guid, int>> { event1, event2 };

        }
コード例 #2
0
 public BudgetRepository(DDDEvents_EventsDataContext context)
 {
     _context = context;
 }
コード例 #3
0
 public Uow(DDDEvents_EventsDataContext context)
 {
     _context = context;
 }
コード例 #4
0
 public UserRepository(DDDEvents_EventsDataContext context)
 {
     _context = context;
 }