예제 #1
0
 public void Setup()
 {
     rentals      = Substitute.For <IRentals>();
     sut          = new VideoStore(rentals);
     TestMovie    = new Movie("Transporter", MovieGenre.Action);
     TestCustomer = new Customer("1978-06-14", "Olle Svensson");
 }
예제 #2
0
 public void Setup()
 {
     dateTime = Substitute.For <IDateTime>();
     dateTime.Now().Returns(DateTime.Now);
     sut          = new Rentals(dateTime);
     TestMovie    = new Movie("Transporter", MovieGenre.Action);
     TestCustomer = new Customer("1978-06-14", "Olle Svensson");
 }
예제 #3
0
 public void SetUp()
 {
     rentals = Substitute.For <Rentals>(Substitute.For <IDateTime>());
     sut     = new RealVideoStore(rentals);
     movie   = new Movie {
         Title = "Rambo", Year = 2001, Genre = "P**n"
     };
 }
예제 #4
0
        public void Setup()
        {
            rentals  = Substitute.For <IRentals>();
            dateStub = Substitute.For <IDateTime>();
            sut      = new VideoStore(rentals);

            movie1 = new Movies()
            {
                Id = 0, Title = "Kalle Anka", Genre = "Animation"
            };
            NotitleOnMovie = new Movies()
            {
                Id = 0, Title = "", Genre = "Comedy"
            };

            customer1 = new Customer()
            {
                FirstName = "KallePer", movies = movie1, SSN = "1994-12-05"
            };
        }
예제 #5
0
 public VideoStore(IRentals iRentals, IDateTime iDateTime)
 {
     this._iRentals  = iRentals;
     this._iDateTime = iDateTime;
 }
예제 #6
0
 public RealVideoStore(IRentals rentals)
 {
     Rentals   = rentals;
     Customers = new List <Customer>();
     Movies    = new Dictionary <string, List <Movie> >();
 }
예제 #7
0
 public void SetUp()
 {
     rentals = Substitute.For <Rentals>();
     sut     = new VideoStoreClass(rentals);
 }
예제 #8
0
 public void Setup()
 {
     rentals  = Substitute.For <IRentals>();
     datetime = Substitute.For <IDateTime>();
     sut      = new RentedMovies(datetime);
 }
예제 #9
0
 public void Setup()
 {
     sut = new Rentals();
 }
예제 #10
0
 public void SetUp()
 {
     rentalMock = Substitute.For <IRentals>();
     iDateTime  = Substitute.For <IDateTime>();
     sut        = new VideoStore(rentalMock, iDateTime);
 }
예제 #11
0
 public VideoStoreClass(IRentals rentals)
 {
     movies       = new List <Movie>();
     customers    = new List <Customer>();
     this.rentals = rentals;
 }
예제 #12
0
 public VideoStore(IRentals Ir)
 {
     Rentals   = Ir;
     Stock     = new List <Movie>();
     Customers = new List <Customer>();
 }
예제 #13
0
 public BookController(IBookService bookService, IRentals rentals)
 {
     _bookService = bookService;
     _rentals     = rentals;
 }
예제 #14
0
 public VideoStore(IRentals _rentals)
 {
     rentals = _rentals;
 }
예제 #15
0
 public VideoStore(IRentals rentals)
 {
     this.Rentals = rentals;
 }
예제 #16
0
 public SUTVideoStoreConsole(IVideoStore _videoStore, IRentals _rentals)
 {
     this._videoStore = _videoStore;
     this._rentals    = _rentals;
 }
예제 #17
0
 public void Setup()
 {
     dateTime = Substitute.For <IDateTime>();
     dateTime.Now().Returns(DateTime.Now);
     sut = new Rentals(dateTime);
 }