This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture, Category("Email")] | |
public class When_sending_an_email_message : Specification | |
{ | |
private EmailSender _emailSender; | |
private ISmtpServer _smtpServer; | |
private IBuildEmailBodies _emailBodyLoader; | |
public override void Given() | |
{ | |
_smtpServer = CreateStub<ISmtpServer>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Subject(typeof(ManagementController), "user management")] | |
public class when_viewing_a_list_of_all_users : as_controller<ManagementController, ViewResult> | |
{ | |
Establish context = () => | |
{ | |
new AutoMapperBootPart().Execute(null); | |
_repository = MockRepository.GenerateStub<IRepository>(); | |
_repository.Expect(a => a.QueryList(Arg<GetAllUsersForManagementListQuery>.Is.Anything)).Return(new List<User> { new User(), new User() }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This has been written in notepad Mr Duffy, forgive me for any compilation errors hahaha | |
public class Flash | |
{ | |
public void Flash(string message, FlashPriority priority) | |
{ | |
Message = message; | |
Priority = priority; | |
} | |
public string Message {get; private set;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAO Up-the-Duffy | |
public class PlayerViewModel | |
{ | |
public string FirstName {get;set;} | |
public string LastName {get;set;} | |
} | |
---------------------------------------------- |
NewerOlder